import java.io.FileReader;
import java.io.IOException;

public class Test03 {
    public static void main(String[] args) throws IOException {
        FileReader fr=new FileReader("DemonIO01\\a.txt");
        char[] chars=new char[2];
        int len;
        int count=0;
        while((len=fr.read(chars))!=-1){
            count++;
            System.out.print(new String(chars,0,len));
        }
        System.out.println(count);
        fr.close();
    }
}
